Fix bug #2749 with overflow-newline-into-fringe in visual-line-mode.
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Jul 2013 15:52:07 +0000 (18:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Jul 2013 15:52:07 +0000 (18:52 +0300)
commit500c0882b8c2eec5fc4700baa1e4ac404ee04640
tree1e1ee62a33347bd0021df9443409d4e9e6b973cb
parent8a4b346893f97a728ad93590d8609551e9d44200
Fix bug #2749 with overflow-newline-into-fringe in visual-line-mode.

 src/xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Don't disallow
 word-wrap, so that overflow-newline-into-fringe would work in
 visual-line-mode.
 (move_it_in_display_line_to): When the last scanned display
 element fits exactly on the display line, and
 overflow-newline-into-fringe is non-nil, but wrap_it is valid,
 don't return MOVE_NEWLINE_OR_CR, but instead back up to the last
 wrap point and return MOVE_LINE_CONTINUED.  Fixes problems with
 finding buffer position that corresponds to pixel coordinates,
 e.g. in buffer_posn_from_coords.
src/ChangeLog
src/xdisp.c